const fs = require('fs');
const crypto = require('crypto');

const createFileHash256 = (path) => {
    let buffer = fs.readFileSync(path)
    let fsHash = crypto.createHash('sha256')
    fsHash.update(buffer)
    let result = fsHash.digest('hex');
    return result
}
const arguments = process.argv.splice(2);
const path = arguments[0]
console.log(createFileHash256(path))